package models;

import play.*;
import play.db.jpa.*;

import javax.persistence.*;

import java.util.*;

public enum Genero {
	
	// los iconos fueros extraidos de http://www.iconarchive.com/category/food-icons.html
	
	LECHE("/public/images/icons/Milk-icon.png"),	
	YOGURT("/public/images/icons/Milk-icon.png"),
	QUESO("/public/images/icons/Emmentaler-icon.png"),
	HUEVOS("/public/images/icons/Egg-stand-icon.png"),
	CARNES("/public/images/icons/Food-pork-chop-icon.png"),
	CARNE_ROJA("/public/images/icons/Food-pork-chop-icon.png"),
	VEGETALES("/public/images/icons/Salad-icon.png"),
	ALMIDONES("/public/images/icons/Domburi-5-icon.png"),
	PASTAS_Y_CEREALES("/public/images/icons/Domburi-5-icon.png"),
	PANIFICADOS("/public/images/icons/Bread-12-icon.png"),
	GRASAS("/public/images/icons/Bacon-icon.png"),
	DULCES("/public/images/icons/caramel-apple-icon.png"),
	INFUSIONES("/public/images/icons/Coffee-icon.png"),
	JUGOS("/public/images/icons/Orange-Juice-icon.png"),
	GASEOSAS("/public/images/icons/DietCoke-icon.png"),
	CONDIMENTOS("/public/images/icons/Km-icon.png"),
	SALVADO("/public/images/icons/Toast-icon.png"),
	AVES("/public/images/icons/fridchicken-icon.png"),
	PESCADOS_Y_MARISCOS("/public/images/icons/Red-Snapper-Battle-icon.png"),
	ACEITES("/public/images/icons/Bacon-icon.png"),
	FRUTAS_FRESCAS("/public/images/icons/Grapefruit-icon.png"),
	FRUTAS_DESHIDRATADAS("/public/images/icons/Grapefruit-icon.png"),
	FRUTAS_SECAS("/public/images/icons/Grapefruit-icon.png"),
	GALLETITAS("/public/images/icons/Bread-12-icon.png"),
	CONSERVAS("/public/images/icons/Salad-icon.png");
	
	private String iconPath;
	
	private Genero(String iconPath) {
		this.iconPath = iconPath;
	}
	
	public String getIconPath() {
		return iconPath;
	}
	
	public String display() {
		return (name().toUpperCase().charAt(0) + name().toLowerCase().substring(1)).replace("_", " ");
	}
	
}
